<!DOCTYPE html>
{% load staticfiles %}
<html lang="zh-CN">
<head>
    <meta charset=UTF-8"UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="{% static 'css/style.css-v1.2.5.css' %}" type="text/css" rel="stylesheet">
    <link href="{% static 'CaoMei/style.css' %}" type="text/css" rel="stylesheet">

    <meta name="keywords" content="SC珉博客,SC,"/>
    <meta name="description" content="SC珉的博客......"/>
    <title>SC珉，python爱好者</title>
    <link rel='dns-prefetch' href='//wandog.cn'/>
    <script src="{% static 'js/jquery.min.js' %}"></script>

    <link rel='stylesheet' id='pure-highlightjs-style-css'
          href="{% static 'css/default.css-ver=0.9.2.css' %}"
          type='text/css' media='all'/>
    <link rel='stylesheet' id='pure-highlightjs-css-css'
          href="{% static 'css/pure-highlight.css-ver=0.1.0.css' %}"

          type='text/css' media='all'/>
    <link rel='stylesheet' id='wp-comments-vip-css'
          href="{% static 'css/style.min.css-ver=4.9.4.css' %}"
          type='text/css'
          media='all'/>

    <script type='text/javascript' src="{% static 'js/jquery.min.js-ver=v1.2.5' %}"
    ></script>
    <script type='text/javascript' src="{% static 'js/script.js-ver=v1.2.5' %}"
    ></script>
    <script type='text/javascript' src="{% static 'js/prettify.js-ver=v1.2.5' %}"
    ></script>
    <script type='text/javascript' src="{% static 'js/instantclick.min.js-ver=v1.2.5' %}"
    ></script>


    <!-- Generated By Show-UserAgent 1.0.8 - http://zlz.im/show-useragent/ -->
    <link rel="stylesheet" href="{% static 'css/show-useragent.css' %}"
          type="text/css" media="screen"/>

    <script>
        if (localStorage.adams_color_style) $('head').append("<style class='diy-color-style'>" + localStorage.adams_color_style + "</style>");
        if (localStorage.adams_font_style) $('head').append("<style class='diy-font-style'>" + localStorage.adams_font_style + "</style>");
    </script>
</head>
<body>
<!-- Header -->
<!-- Header -->

<header class="header">
    <section class="container">

        <h1 class="fullname">
            {% ifequal flag 'index' %}sc珉 首页{% endifequal %}
            {% ifequal flag 'suibi' %}sc珉 随笔{% endifequal %}
            {% ifequal flag 'time' %} 时间档{% endifequal %}
            {% ifequal flag 'message' %} 留言板{% endifequal %}
         {% ifequal flag 'article' %} {{ article.title }}{% endifequal %}



        </h1>

        <div class="menu">
            <ul>
                <li id="menu-item-7" class=""><a></a></li>
                <li id="menu-item-32" class=""><a></a></li>
                <li id="menu-item-5" class=""><a></a></li>
            </ul>
        </div>
        <nav class="header_nav">
            <ul id="menu-%e5%af%bc%e8%88%aa" class="menu">


                <li id="menu-item-75"
                    class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-75
       {% ifequal flag 'index' %}current-menu-item current_page_item{% endifequal %}"><a
                        href="{% url 'index' %}">首页</a></li>
                <li id="menu-item-38" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-38
       {% ifequal flag 'suibi' %}current-menu-item current_page_item{% endifequal %}">
                    <a href="{% url 'suibi' %}">随笔</a>
                </li>
                <li id="menu-item-35"
                    class="menu-item menu-item-type-post_type menu-item-object-page  page_item page-item-32  menu-item-35
       {% ifequal flag 'time' %}current-menu-item current_page_item{% endifequal %}">
                    <a href="{% url 'time_file' %}">时间档</a></li>
                <li id="menu-item-10" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-10
       {% ifequal flag 'message' %}current-menu-item current_page_item{% endifequal %}"><a
                        href="{% url 'message' %}">留言板</a></li>


            </ul>
        </nav>
    </section>
    {% if flag == "index" or flag == "suibi" %}

        <section class="infos">
            <div class="container">
                <h2 class="fixed-title"></h2>
                <div class="fixed-menus"></div>
                <div class="placard">
                    简单传递美好
                </div>
            </div>
            <script type="text/javascript" src="{% static 'js/canvas-nest.min.js' %}"
            ></script>
        </section>
    {% else %}
        <section class="infos">
            <div class="container">
                <h2 class="fixed-title"></h2>
                <!--<div class="fixed-menus"></div>-->

                <div class="fields">
                <span><i class="czs-time-l"></i> <time datetime="{{ articlelast.first.add_time }}T22:18:24+08:00"
                                                       itemprop="datePublished"
                                                       pubdate>{{ articlelast.first.add_time }}</time></span> /
                    <span><i class="czs-talk-l"></i> {{ articlelast.first.get_message_nums }}评</span> /
                    <a href="javascript:;" data-action="topTop" data-id="32" class="dot-good ">
                        <i class="czs-thumbs-up-l"></i><i class="czs-thumbs-up"></i>
                        <span class="count">0</span>赞
                    </a>
                </div>

                <div class="socials">
                    <div class="donate">
                        <a href="javascript:;">
                            <i class="czs-coin-l s"></i><i class="czs-coin h"></i> 赏</a>

                    </div>

                    <div class="share">
                        <a href="javascript:;"
                           data-qrcode="//api.qrserver.com/v1/create-qr-code/?size=150x150&margin=10&data=http://baidu.com">
                            <i
                                    class="czs-scan-l s"></i><i class="czs-qrcode-l h"></i> 码</a>
                    </div>
                </div>
            </div>
            <script type="text/javascript" src="{% static 'js/canvas-nest.min.js' %}"
            ></script>


        </section>
    {% endif %}
</header>


<!-- Post List -->
{% block body %}

{% endblock body %}

<!--音乐播放器-->

<!--底部滚动条-->
<div id="gg">
    <div class="wp_close"><a href="javascript:void(0)" onclick="$('#gg').slideUp('slow');" title="关闭">×</a>
        <div id="feedb"><a href="{% url 'index' %}" rel="nofollow" target="_blank"
                           title="欢迎使用QQ邮箱订阅资源部" class="image"><img alt="订阅图标按钮"
                                                                    src="{% static 'images/071.png' %}"

                                                                    style="width:23px;height:23px;"/></a></div>
        <div class="bulletin">
            <ul>

                {% for article in articlerand %}
                    <li><a href="{% url 'article' %}?id={{ article.id }}" target="_blank"
                           title="{{ article.title }}">
                        {{ article.shuoming }}</a>
                        <a href="{% url 'article' %}?id={{ article.id }}">
                            {% if article.get_message_nums >= 1 %}
                                {{ article.get_message_nums }}条评论
                            {% else %}
                                坐等沙发
                            {% endif %}
                        </a>
                    </li>
                {% endfor %}


            </ul>
        </div>
    </div>
    <script type="text/javascript" src="#"
    ></script>
    <!--底部滚动条--  js待完善>

    <!--主题复制提示代码-->
    <script type="text/javascript">
        function warning() {
            if (navigator.userAgent.indexOf("MSIE") > 0) {
                art.dialog.alert('复制成功！若要转载请务必保留原文链接，申明来源，谢谢合作！');
            } else {
                alert("复制成功！若要转载请务必保留原文链接，申明来源，谢谢合作！");
            }
        }

        document.body.oncopy = function () {
            warning();
        }
    </script>

    <footer class="footer">
        <section class="container">
            <ul id="menu" class="menu">
                <li id="menu-item-14" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-14"><a
                        href="https://gitee.com/wearetvxq"
                >Git地址</a></li>
                <li id="menu-item-42" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-42"><a
                        href="https://gitee.com/wearetvxq">欢迎收藏</a></li>
            </ul>
            <p>
                <span class='left'>&copy; 2018 <a href="index.html">sc珉</a></span>
                <span class='right'>Theme 感谢 <a
                        href="#"
                        target="_blank">Adams</a></span>
            </p>
        </section>
    </footer>


    <div class="setting_tool iconfont">
        <a class="back2top" style="display:none;"><i class="czs-arrow-up-l"></i></a>
        <a class="sosearch"><i class="czs-search-l"></i></a>
        <a class="socolor"><i class="czs-clothes-l"></i></a>
        <div class="s">
            <form method="get" action="http://127.0.0.1/" class="search">
                <input class="search-key" name="s" autocomplete="off" placeholder="输入关键词..." type="text" value=""
                       required="required">
            </form>
        </div>
        <div class="c">
            <ul>
                <li class="color undefined">默认</li>
                <li class="color sepia">护眼</li>
                <li class="color night">夜晚</li>
                <li class="hr"></li>
                <li class="font serif">Serif</li>
                <li class="font sans">Sans</li>
            </ul>
        </div>
    </div>


    <script type='text/javascript' src="{% static 'js/ajax-comment.js' %}"
    ></script>
    <script type='text/javascript' src="{% static 'js/highlight.pack.js-ver=0.9.2' %}"
    ></script>


    <script type="text/javascript">
        /*-------------------------------------------------*/
        /* 鼠标点击显示字体特效！
        /*-------------------------------------------------*/
        var a_idx = 0;

        $(document).ready(function () {
            $("body").click(function (e) {
                var a = new Array("帅帅哒", "色狼", "流氓", "你妈逼", "fuck", "求交流", "真聪明", "爱你哦", "好厉害", "你真帅", "祝福你");
                var $i = $("<span/>").text(a[a_idx]);
                a_idx = (a_idx + 1) % a.length;
                var x = e.pageX,
                    y = e.pageY;
                $i.css({
                    "z-index": 99999,
                    "top": y - 20,
                    "left": x,
                    "position": "absolute",
                    "font-weight": "bold",
                    "color": "#ff6651"
                });
                $("body").append($i);
                $i.animate({
                        "top": y - 180,
                        "opacity": 0
                    },
                    1500,
                    function () {
                        $i.remove();
                    });
            });


        })


    </script>

</body>
</html>